package com.boot.mapper;

import com.boot.entity.User;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface UserMapper {
    List<User> getUser(@Param("userName")String userName);

    void updateById(User user);

    void updateByAge(Integer age);

    List<User> selectWhere(@Param("userName")String userName,@Param("password")String password);

    List<User> selectForeach(List<Long> ids);

    void batchInsert(List<User> users);

    List<User> selectBind(@Param("userName")String userName,@Param("password")String password);
    List<User> selectCDATA();

    List<User> selectTrim(String userName);

    List<User> page(@Param("userName")String userName,
                    @Param("password")String password,
                    @Param("start")Integer start,
                    @Param("pageSize")Integer pageSize);

    Integer count(@Param("userName")String userName,@Param("password")String password);
}
